#ifndef __USART_H
#define __USART_H

/* Includes ------------------------------------------------------------------*/
#include "bsp.h"

/* typedef -----------------------------------------------------------*/

/* define ------------------------------------------------------------*/
#define UART_TXD_PORT   GPIO_D
#define UART_TXD_PIN    GPIO_PIN_5
#define UART_RXD_PORT   GPIO_D
#define UART_RXD_PIN    GPIO_PIN_6

#ifdef _RAISONANCE_
#define PUTCHAR_PROTOTYPE int putchar(char c)
#define GETCHAR_PROTOTYPE int getchar(void)
#elif defined(_COSMIC_)
#define PUTCHAR_PROTOTYPE char putchar(char c)
#define GETCHAR_PROTOTYPE char getchar(void)
#else /* _IAR_ */
#define PUTCHAR_PROTOTYPE int putchar(int c)
#define GETCHAR_PROTOTYPE int getchar(void)
#endif /* _RAISONANCE_ */

/* extern variables --------------------------------------------------*/

/* functions ---------------------------------------------------------*/

u8 UartReceiveScan(void);
void UartInit(void);

extern u8 uartDataBuf[64];
extern u8 uartReceivedFlag;
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

#endif